package com.cn.dao;

import com.cn.BaseDao.BaseDao;
import com.cn.daoIntface.CommodityTypeIntface;
import com.cn.entity.CommodityTypeEntity;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

public class CommodityTypeDao extends BaseDao implements CommodityTypeIntface {
    @Override
    public List<CommodityTypeEntity> queryAll() throws ClassNotFoundException, SQLException, InstantiationException, IllegalAccessException {
        String sql = "select * from commodityType where 1=1";
        return this.executeQuery(sql, CommodityTypeEntity.class);
    }

    @Override
    public int add(CommodityTypeEntity commodityTypeEntity) throws SQLException, ClassNotFoundException {
        return 0;
    }

    @Override
    public int update(CommodityTypeEntity commodityTypeEntity) {
        return 0;
    }

    @Override
    public List<CommodityTypeEntity> queryAll(String father_id) {
        return null;
    }

    @Override
    public Object tableToClass(ResultSet rs) throws Exception {
        return null;
    }
}
